<?php
/**
 * Created by PhpStorm.
 * User: Mloong
 * Date: 2019/4/17
 * Time: 10:17
 */

namespace app\api\validate;


class TourismData extends BaseValidate
{
    protected $message = [
        'name.require' => '名字必须',
        'mobile.require' => '手机号码必须',
        'mobile.mobile' => '手机号码格式不正确',
        'id_card.require' => '身份证号码必须',
        'id_card.idCard' => '身份证号码格式不正确',
        'country.require' => '国家字段必须',
        'city.require' => '城市字段必须',
        'remarks.require' => '备注字段必须',
    ];

    protected $rule = [
        'name' => 'require',
        'phone' => 'require|mobile',
        'id_card' => 'require|idCard',
        'country' => 'require',
        'city' => 'require',
        'remarks' => 'require',
    ];
}